/*
 * main.c
 *
 *  Created on: Jan 30, 2013
 *      Author: justin
 */
#include "project.h"
//#include "FSM.h"

int main() {
	/*initialize serial*/
	xSerialPortInitMinimal(115200,150,150);
	/*start creating tasks*/
	xTaskCreate(
				Task1,
				(signed portCHAR *)"Task1",
				configMINIMAL_STACK_SIZE,
				NULL,
				2,
				NULL);
	xTaskCreate(
				Task2,
				(signed portCHAR *)"Task2",
				configMINIMAL_STACK_SIZE,
				NULL,
				1,
				NULL);
	xTaskCreate(
				FSM_machine,
				(signed portCHAR*)"FSM_machine",
				configMINIMAL_STACK_SIZE,
				NULL,
				0,
				NULL);

//	Call the scheduler function
	vTaskStartScheduler();
	int i = 0;
	while (1) PORTF = i++; /*if everything goes well, we never get here*/

}
